              $(".submit").click(function(){
                    var title=$("#title").val();
                    var content=$("#content").val();
                    var id=$("#id").val();
                  $.ajax({
                      type:"post",
                      url:"./index.php?m=Admin&c=new&a=newupdate",
                      data:{title:title,content:content,id:id},
                      success:function(a){
                          if(a!=1){
                               alert("修改成功");window.location.href ="index.php?m=Admin&c=new&a=newlist";
                          }else{
                              alert("修改失败");
                          }
                      }  
                  });
                  
              });
